/** ###################################################################
**     Filename  : Accel.C
**     Project   : Motologger_v2
**     Processor : MC9S12XA256CFU
**     Compiler  : CodeWarrior HCS12X C Compiler
**     Date/Time : 12/6/2009, 6:02 PM
**     Contents  :
**         User source code
**
**     (c) Copyright UNIS, a.s. 1997-2008
**     UNIS, a.s.
**     Jundrovska 33
**     624 00 Brno
**     Czech Republic
**     http      : www.processorexpert.com
**     mail      : info@processorexpert.com
** ###################################################################*/

/* MODULE Accel */

#include "Accel.h"
#include "MMA7455.h"

//FIXME -- rewrite to output value in fixed point gs and rename module

void Accel_Init(void){
  SetUp_ModeOfSensorIon(ION_G4);
  Ion_SwitchMode(ION_STANDBY);
  StaticCalibration_Ion(); 
  Read_AccelerometerIon();  
}

void Accel_GetValue(vector_t *vec){
	 MMA7455_getVector(vec);
}

void Accel_Update(void){
	Read_AccelerometerIon();
}



/* END Accel */
